package com.ott.tool;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;

import javax.swing.JFileChooser;
import javax.swing.JLabel;

public class ChooseFiles implements ActionListener{
	
	@Override
	public void actionPerformed(ActionEvent e) {
		JFileChooser jfc=new JFileChooser("C:/Users/admin/Desktop/文档/测试用例/");
		jfc.setMultiSelectionEnabled(true);
        jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY  );  
        jfc.showDialog(new JLabel(), "选择");  
        File file=jfc.getSelectedFile();
        if(file != null){
        	IndexForm.textArea2.setText(file.getAbsolutePath());
        }
	}
}
